package com.example.lvsuo.modal;

import com.example.lvsuo.annotation.File;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/file")
public class FileUpload {

    @File
    @PostMapping
    Result up(@RequestParam("file") MultipartFile file){
        return Result.back("成功");
    }
}
